package com.hgw.Demo03_DecoratorPattern.decorator;

/**
 * Data time:2021/12/14 16:46
 * StudentID:2019112118
 * Author:hgw
 * Description: 炒面，充当具体构建类
 */
public class FriedNoodles extends FastFood{
    public FriedNoodles() {
        super(8,"炒面");
    }

    @Override
    public float cost() {
        return getPrice();
    }
}
